//
//  LSDamageReportViewController.m
//  LaSaCivilAffairsDepartment
//
//  Created by 聂志康 on 2018/12/21.
//  Copyright © 2018 wpkj. All rights reserved.
//

#import "LSDamageReportViewController.h"

@interface LSDamageReportViewController ()
@property (nonatomic, strong) UITextView *contentInputTV;
@property (nonatomic, strong) UIImageView *demageImageView;
@property (nonatomic, strong) UITextField *locationTF;
@end

@implementation LSDamageReportViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"灾情上报";
    [self setUpUI];
}

- (void)setUpUI {
    [self.view addSubview:[[UILabel alloc] initWithFrame:CGRectMake(25, 4, ScreenWidth-50, 23) andText:@"内容描述" andTextColor:hexColor(666666) andFont:[UIFont fontWithName:@"SourceHanSansCN-Regular" size:9] andTextAlignment:NSTextAlignmentLeft]];
    self.contentInputTV = [[UITextView alloc] initWithFrame:CGRectMake(25, 28, ScreenWidth-50, 86)];
    self.contentInputTV.layer.borderWidth = 0.5;
    self.contentInputTV.backgroundColor = hexColor(EEEEEE);
    self.contentInputTV.layer.borderColor = hexColor(CCCCCC).CGColor;
    [self.view addSubview:self.contentInputTV];
    
    self.demageImageView = [[UIImageView alloc] initWithFrame:CGRectMake(25, 125, 133, 65)];
    self.demageImageView.image = [UIImage imageNamed:@"pic"];
    self.demageImageView.layer.borderWidth = 0.5;
    self.demageImageView.backgroundColor = hexColor(EEEEEE);
    self.demageImageView.layer.borderColor = hexColor(CCCCCC).CGColor;
    self.demageImageView.contentMode = UIViewContentModeCenter;
    [self.view addSubview:self.demageImageView];
    UIButton *imageUploadButton = [[UIButton alloc] initWithFrame:CGRectMake(25+133+10, 125+65-20, 65, 20)];
    imageUploadButton.backgroundColor = NAV_COLOR;
    [imageUploadButton setTitleColor:hexColor(f7f7f7) forState:UIControlStateNormal];
    [imageUploadButton setTitle:@"立即上传" forState:UIControlStateNormal];
    imageUploadButton.titleLabel.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:10];
    imageUploadButton.layer.cornerRadius = 4;
    imageUploadButton.layer.masksToBounds = true;
    [self.view addSubview:imageUploadButton];
    
    [self.view addSubview:[[UILabel alloc] initWithFrame:CGRectMake(25, 204, ScreenWidth-50, 23) andText:@"内容描述" andTextColor:hexColor(666666) andFont:[UIFont fontWithName:@"SourceHanSansCN-Regular" size:9] andTextAlignment:NSTextAlignmentLeft]];
    self.locationTF = [[UITextField alloc] initWithFrame:CGRectMake(25, 224, ScreenWidth-25-25-72, 35)];
    self.locationTF.layer.borderWidth = 0.5;
    self.locationTF.backgroundColor = hexColor(EEEEEE);
    self.locationTF.layer.borderColor = hexColor(CCCCCC).CGColor;
    [self.view addSubview:self.locationTF];
    UIButton *locationUploadButton = [[UIButton alloc] initWithFrame:CGRectMake(ScreenWidth-25-65, 238, 65, 20)];
    locationUploadButton.backgroundColor = NAV_COLOR;
    [locationUploadButton setTitleColor:hexColor(f7f7f7) forState:UIControlStateNormal];
    [locationUploadButton setTitle:@"立即获取" forState:UIControlStateNormal];
    locationUploadButton.titleLabel.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:10];
    locationUploadButton.layer.cornerRadius = 4;
    locationUploadButton.layer.masksToBounds = true;
    [self.view addSubview:locationUploadButton];
    
    UIButton *uploadButton = [[UIButton alloc] initWithFrame:CGRectMake(25, 287, ScreenWidth-50, 40)];
    [uploadButton setTitle:@"提交" forState:UIControlStateNormal];
    [uploadButton setTitleColor:hexColor(ffffff) forState:UIControlStateNormal];
    uploadButton.titleLabel.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:14];
    uploadButton.backgroundColor = hexColor(FDBB2C);
    uploadButton.layer.cornerRadius = 4;
    uploadButton.layer.masksToBounds = true;
    [self.view addSubview:uploadButton];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
